package com.amit.Basic_Simple_Program;

import java.util.Arrays;


public class String_Sort {

	public static void main(String[] args) {
		
		String s1="amit yadav";
		String s2[]=s1.split("");
		String results=" ";
		
		Arrays.sort(s2);
		
		for(int i=0;i<=s2.length-1;i++)
		{
			results=results+" "+s2[i];
		}
		System.out.println(results.trim());
		System.out.println(results.toUpperCase());
		
		

	}

}
